|
|
|
 | The value of intTemp is 10. The Quick Watch window is wonderful for viewing the contents of variables on the fly. Also, you can also just hover your cursor over a variable, and the value of that variable will be displayed in a tooltip. |
|
|
|
|
|
|
Setting the Next Statement to Execute |
|
|
|
|
|
|
|
|
Sometimes when executing a program, you need to skip a section of code or back up and execute the same code again. Visual Basic allows this as long as the line you want to move to is in the current procedure. |
|
|
|
|
| 1. Press F8 to continue executing the program from the previous exercise. 2. Stop when youre in the Proc2 procedure and your code window looks like the one shown in Figure 16.5. | | | | |
|
|
|
|
Figure 16.5
Calling Proc3. |
|
|
|
| | 3. At this point, you may want to change some code. Position your cursor to the line that reads strName = "Bill Gates". 4. Change Bill Gates to Tom Buttons. 5. Force Visual Basic to reexecute the statements in the Proc2 statement by right-clicking the line you want to reexecute and then selecting Set Next Statement from the pop-up menu. |
|
|
|